package com.atguigu.mall.seckill.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zststart
 * @create 2022-06-14 18:05
 */
@Configuration
public class MyRabbitConfig {
//    @Autowired
//    RabbitTemplate rabbitTemplate;
    @Bean
    public MessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();//给容器里放一个json的转换包
    }

}
